package com.cmower.mkyong;

import java.math.BigDecimal;

/**
 * @author 沉默王二，一枚有趣的程序员
 */
public class BigDecimalDemo {
    public static void main(String[] args) {
BigDecimal a = new BigDecimal("2.00");
BigDecimal b = new BigDecimal("2.0");

System.out.println(a.equals(b));
System.out.println(a.compareTo(b) == 0);
    }
}